<template>
  <div>
    <el-descriptions class="margin-top" title="系统设置信息" :column="3" size="small"
                     style="width: 90%;margin: auto;padding-top: 20px" border>
      <el-descriptions-item>
        <template slot="label">
          <i class="el-icon-user"></i>
          设置名称
        </template>
        {{ formData.settingName }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label">
          <i class="el-icon-mobile-phone"></i>
          排序
        </template>
        {{ formData.sort }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label">
          <i class="el-icon-location-outline"></i>
          类型
        </template>
<!--        size="small"-->
        <el-tag>{{ formData.type }}</el-tag>
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label">
          <i class="el-icon-tickets"></i>
          备注信息
        </template>
        {{ formData.remark }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label">
          <i class="el-icon-office-building"></i>
          内容
        </template>
        <div v-html="formData.content" style="text-align: left;margin-left: 35px">
          {{ this.formData.content }}
        </div>
      </el-descriptions-item>
    </el-descriptions>
  </div>
</template>

<script>
import {getSetting} from "@/api/scp/setting";

export default {
  name: "open",
  data() {
    return {
      formData: {},
      size:"small"
    }
  },
  created() {
    var settingId = this.$route.query.settingId;
    this.init(settingId)
  },
  methods: {
    init(settingId) {
      getSetting(settingId).then(response => {
        this.formData = response.data;
      });
    },

  }
}
</script>

<style scoped>

</style>
